<template>
    <view class="content">
        <image class="logo" src="/static/logo.png"></image>
        <view>
            <text class="title">{{title}}</text>
            <button @click="jump" class="btnjump">跳转list22 </button>
        </view>
    </view>
</template>

<script>
import {ref,getCurrentInstance , onBeforeMount,onMounted, onUpdated, onUnmounted } from 'vue'
// import store from '@/store/globalStore'
import { useStore } from 'vuex';
    export default {
        setup() {
            const title = ref('请登录');
            const { state } = useStore();
            const { proxy } = getCurrentInstance();
            let jump = ()=>{
                console.log('jump')
                // let url = "/subPages/list/main"
                // uni.redirectTo({
                //     url:url
                // })
            }
            onBeforeMount(()=>{
                console.log(proxy.$systemName)
                console.log(state)
               getData()
            })
            let getData = ()=>{
                console.log(this)
            }
            return {
                getData,
                jump,
                title
            }
        }
    }
</script>

<style lang="scss" scoped>
    .content {
        text-align: center;
        height: 400upx;
    }

    .logo {
        height: 200upx;
        width: 200upx;
        margin-top: 200upx;
    }

    .title {
        font-size: 36upx;
        color: #8f8f94;
    }
</style>
